var obj=[];
function  $(id){
    return document.getElementById(id);
}

function monitor() {

    if ($('man').value !== "" && $('content').value !== "") {
        var str = "";
        obj.push({man: $('man').value, content: $('content').value});
        obj.forEach(n => {
            str += `<tr><td>${n.man}</td><td>${n.content}</td></tr>`
        })

        $('comments').innerHTML = str;
    }
}